package org.casscommunity.sights.client.service;

import java.util.List;

import org.casscommunity.sights.server.domain.Place;
import org.casscommunity.sights.shared.domain.PlaceProxy;

import com.google.gwt.requestfactory.shared.InstanceRequest;
import com.google.gwt.requestfactory.shared.Request;
import com.google.gwt.requestfactory.shared.RequestContext;
import com.google.gwt.requestfactory.shared.Service;

@Service(Place.class)
public interface PlaceRequest extends RequestContext {

	Request<PlaceProxy> findPlace(Long id);

	Request<List<PlaceProxy>> findAllPlaces();
	
	InstanceRequest<PlaceProxy, Void> persist();

	InstanceRequest<PlaceProxy, Void> remove();
	
}
